package a05_Interface.interfaceTest;

/**
 * @Author quan
 * @Description 动物类：父类
 * @Date 2023/3/1 14:42
 */
public abstract class Animal {
    private String name;
    private int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    //抽象方法eat
    public abstract void eat();
}
